# from ihome.celery_tasks.main import celery_app
# from ihome.celery_tasks.sms.yuntongxun.ccp_sms import CCP
from main import celery_app
from sms.yuntongxun.ccp_sms import CCP


@celery_app.task(name='mobile,sms_code')
def ccp_send_sms_code(mobile, sms_code):
    result = CCP().send_template_sms(
        mobile,
        [sms_code, 5],
        1
    )
    return result
